package com.synergy.stockflow.procure.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.synergy.stockflow.product.entity.Material;
import com.synergy.stockflow.warehouse.entity.Warehouse;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "purchase_details")
public class PurchaseDetails {
    /**
     * 采购明细编码
     */
    @TableId(value = "purchase_details_id", type = IdType.ASSIGN_ID)
    @Schema(description="采购明细编码")
    private String purchaseDetailsId;

    /**
     * 产品编码
     */
    @TableField(value = "purchase_details_products_id")
    @Schema(description="产品编码")
    private String purchaseDetailsProductsId;

    /**
     * 供应商价格编码
     */
    @TableField(value = "purchase_details_supplier_prices_id")
    @Schema(description="供应商价格编码")
    private String purchaseDetailsSupplierPricesId;

    /**
     * 采购数量
     */
    @TableField(value = "purchase_details_quantity_purchased")
    @Schema(description="采购数量")
    private BigDecimal purchaseDetailsQuantityPurchased;

    /**
     * 采购原价合价
     */
    @TableField(value = "purchase_details_original_price")
    @Schema(description="采购原价合价")
    private BigDecimal purchaseDetailsOriginalPrice;

    /**
     * 采购实际合价
     */
    @TableField(value = "purchase_details_actual_price")
    @Schema(description="采购实际合价")
    private BigDecimal purchaseDetailsActualPrice;

    /**
     * 实际采购价（不含税）
     */
    @TableField(value = "purchase_details_no_actual_price")
    @Schema(description="实际采购价（不含税）")
    private BigDecimal purchaseDetailsNoActualPrice;

    /**
     * 采购订单编码
     */
    @TableField(value = "purchase_details_purchase_order_id")
    @Schema(description="采购订单编码")
    private String purchaseDetailsPurchaseOrderId;

    /**
     * 产品
     */
    @TableField(exist = false)
    @Schema(description="产品")
    private Material material;

    /**
     * 供应商价格
     */
    @TableField(exist = false)
    @Schema(description="供应商价格")
    private SupplierPrices supplierPrice;
}